﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductMonitor.Models
{
    /// <summary>
    /// 车间信息的模型
    /// </summary>
    class WorkShopModel
    {
        /// <summary>
        /// 车间名称
        /// </summary>
        public string WorkShopName { get; set; }

        /// <summary>
        /// 正在工作的机器数量
        /// </summary>
        public int WorkingCount { get; set; }
        /// <summary>
        /// 正在等待的数量
        /// </summary>
        public int WaitingCount { get; set; }

        /// <summary>
        /// 停止工作的数量
        /// </summary>
        public int StopCount { get; set; }

        /// <summary>
        /// 损坏的数量
        /// </summary>
        public int BrokenCount { get; set; }

        /// <summary>
        /// 总数
        /// </summary>
        public int TotalCount { get => WorkingCount + WaitingCount + StopCount + BrokenCount; }
    }
}
